<template>
  <div class="hello-world">
    <div class="title">HelloWorld的页面</div>
    <div class="count-display">Count: {{ store.count }}</div>
    <div class="double-display">Double: {{ store.double }}</div>
    <div class="button-container">
      <el-button type="primary" @click="store.increment">点击增加</el-button>
      <el-button type="success" @click="goToAudio">音频</el-button>
    </div>
  </div>
</template>

<script lang="ts" setup>
import { useCounterStore } from '../store'
import { useRouter } from 'vue-router';
const store = useCounterStore()
const router = useRouter();
const goToAudio = ()=> {
  router.push({ path: '/Audio' });
}
</script>

<style lang="scss" scoped>
.hello-world {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 18px;
  color: #333;

  .title {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 20px;
  }

  .count-display, .double-display {
    font-size: 24px;
    margin: 10px 0;
  }

  .button-container {
    margin-top: 20px;
  }
}
</style>
